<include file="top" />

<script language="javascript">
 function getValue()
 {
  var s = "";
  for(var i=0;i<form1.relative_product.options.length;i++)
  {
   if(form1.relative_product.options[i].selected)
   { 
    s+=form1.relative_product.options[i].value;
    s+=',';
   }
  }
  form1.rp.value=s;
 }
</script>

<div id="right">
	<h3>修改产品信息</h3>
	<form method="post" enctype="multipart/form-data" id="form1">
		<table width="98%" border="0" class="table">
			
					<input type="hidden" value="<{$product.id}>" name="product_id">
					<!-- input type="hidden" value="<{$product.pid}>" name="pid"-->
			<!-- 这个软件是window,还是mac,还是android的 -->
			<tr>
				<td width="16%" >软件类型window ro mac：</td>
				<td width="84%">
					<input type="radio" value="0" <if condition="$product.pc eq 0">checked="checked"</if> name="pc">不显示
					<input type="radio" value="1" <if condition="$product.pc eq 1">checked="checked"</if> name="pc">for windows
					<input type="radio" value="2" <if condition="$product.pc eq 2">checked="checked"</if> name="pc">for mac
				</td>
			</tr>
			<tr>
				<td width="16%" >*产品名称：</td>
				<td width="84%"><input class="w350" type="text" class="wid" name="product_name" value="<{$product.product_name}>"></td>
			</tr>
			
			<tr>
				<td width="16%" >title：</td>
				<td width="84%"><input class="w350" type="text" class="wid" name="product_title" value="<{$product.product_title}>"></td>
			</tr>
			<tr>
				<td width="16%" >keywords：</td>
				<td width="84%"><input class="w350" type="text" class="wid" name="product_keyword" value="<{$product.product_keyword}>"></td>
			</tr>
			<tr>
					<td width="16%" >原首页缩略图：</td>
					<td width="84%"><img src="__PUBLIC__/upload/<{$product.small_icon}>"></td>
			</tr>
			<tr>
					<td width="16%" >*首页缩略图(用于首页)：</td>
					<td width="84%"><input type="file" name="small_icon"></td>
				</tr>
			<tr>
			<tr>
					<td width="16%" >原首页缩略图2：</td>
					<td width="84%"><img src="__PUBLIC__/upload/<{$product.sec_img}>"></td>
			</tr>
			<tr>
					<td width="16%" >*首页缩略图2(用于首页)：</td>
					<td width="84%"><input type="file" name="sec_img"></td>
				</tr>
			<tr>
				<td width="16%" >原产品图片：</td>
				<td width="84%"><img src="__PUBLIC__/upload/<{$product.product_img}>"></td>
			</tr>
			<tr>
				<td width="16%" >产品图片：</td>
				<td width="84%">
					<input type="file" name="t_img">
				</td>
			</tr>
		
			
		
			
				<tr>
					<td width="16%" >how it work 链接：</td>
					<td width="84%"><input class="w350" type="text" class="wid" name="work_link" value="<{$product.work_link}>"></td>
				</tr>
			
			<tr>
					<td width="16%" >更改静态化名字：</td>
					<td width="84%"><input class="w350" type="text" class="wid" name="statice_name" value="<{$product.statice_name}>"></td>
				</tr>
			<tr>
				<td width="16%" >windows购买链接：</td>
				<td width="84%"><input class="w350" type="text" class="wid" name="buy_link" value="<{$product.buy_link}>"></td>
			</tr>
			<tr>
				<td width="16%" >windows下载链接：</td>
				<td width="84%"><input class="w350" type="text" class="wid" name="download_link" value="<{$product.download_link}>"></td>
			</tr>
			
			<tr>
				<td width="16%" >mac购买链接：</td>
				<td width="84%"><input class="w350" type="text" class="wid" name="sec_buy_link" value="<{$product.sec_buy_link}>"></td>
			</tr>
			<tr>
				<td width="16%" >mac下载链接：</td>
				<td width="84%"><input class="w350" type="text" class="wid" name="sec_download_link" value="<{$product.sec_download_link}>"></td>
			</tr>
			<tr>
				<td width="16%" >按钮1文字：</td>
				<td width="84%"><input class="w350" type="text" class="wid" name="button_one_word" value="<{$product.button_one_word}>"></td>
			</tr>
			<tr>
				<td width="16%" >按钮2文字：</td>
				<td width="84%"><input class="w350" type="text" class="wid" name="button_two_word" value="<{$product.button_two_word}>"></td>
			</tr>
			
			
			
			<tr>
				<td width="16%" >只有一个下载链接：</td>
				<td width="84%">
					<input type="radio" name="one_download_link" value="1" <if condition="$product.one_download_link eq 1">checked="checked"</if>>是
					<input type="radio" name="one_download_link" value="0" <if condition="$product.one_download_link eq 0">checked="checked"</if>>否
				</td>
			</tr>
			
			<tr>
				<td width="16%" >for windows or mac外链接(暂不用)：</td>
				<td width="84%">
					<input class="w350" type="text" class="wid" value="<{$product.out_link}>" name="out_link">
				</td>
			</tr>
			
	
				<td width="16%" >是否热卖：（首页产品）</td>
				<td width="84%">
					<input type="radio" value="1" <if condition="$product['is_popular'] eq 1">checked="checked"</if> name="is_popular">是
					<input type="radio" value="0" <if condition="$product['is_popular'] eq 0">checked="checked"</if> name="is_popular">否
				</td>
			</tr>
			
			
			<tr>
				<td width="16%" >市场价：</td>
				<td width="84%"><input type="text" name="market_price" value="<{$product.market_price}>"></td>
			</tr>
			<tr>
				<td width="16%" >w版本号：</td>
				<td width="84%"><input type="text" name="w_version" value="<{$product.w_version}>"></td>
			</tr>
			<tr>
				<td width="16%" >m版本号：</td>
				<td width="84%"><input type="text" name="m_version" value="<{$product.m_version}>"></td>
			</tr>
			<tr>
				<td width="16%" >windows价格：</td>
				<td width="84%"><input type="text" name="now_price" value="<{$product.now_price}>"></td>
			</tr>
			<tr>
				<td width="16%" >mac价格：</td>
				<td width="84%"><input type="text" name="other_price" value="<{$product.other_price}>"></td>
			</tr>
			<tr>
				<td width="16%" >Size：</td>
				<td width="84%"><input type="text" name="size" value="<{$product.size}>"></td>
			</tr>
			
			<tr>
				<td width="16%" >seo内容简介<br />
				(首页和产品列表页的产品简要说明)：</td>
				<td width="84%"><textarea id="introduce" name="introduce" style="width:400px;height:100px;"><{$product.introduce}></textarea></td>
		    </tr>
		    
		    <tr>
				<td width="16%" >描述：</td>
				<td width="84%"><textarea id="sec_description" name="sec_description" style="width:800px;height:200px;"><{$product.sec_description}></textarea></td>
		    </tr>
		       <tr>
				<td width="16%" >描述列表：</td>
				<td width="84%"><textarea id="list_description" name="list_description" style="width:800px;height:200px;"><{$product.list_description}></textarea></td>
		    </tr>
			<tr>
				<td width="16%" >内容：</td>
				<td width="84%"><textarea id="product_content" name="product_content" style="width:800px;height:300px;"><{$product.content}></textarea></td>
			</tr>
			<tr>
				<td width="16%" ></td>
				<td width="84%"><input type="submit" value="提交" name="sub" onclick="getValue()" /></td>
			</tr>
		</table>
	</form>
	<script type="text/javascript">
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('#product_content', {
					allowFileManager : true
				});
			});
	</script>
	<script type="text/javascript">
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('#sec_description', {
					allowFileManager : true
				});
			});
			KindEditor.ready(function(K) {
				editor = K.create('#list_description', {
					allowFileManager : true
				});
			});
	</script>
</div>
</body>
</html>